package cn.tedu.charging.user.service.impl;

import cn.tedu.charging.user.mapper.UserMapper;
import cn.tedu.charging.user.pojo.vo.UserAndVehicle;
import cn.tedu.charging.user.service.UserService;
import cn.tedu.common.pojo.vo.UserInfoVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public UserInfoVO getUserInfo(Integer userId) {
        UserInfoVO userInfoVO = new UserInfoVO();
        userInfoVO.setCarId(1);
        return userInfoVO;
    }

    @Override
    public UserAndVehicle getCarInfo(Integer id) {
        UserAndVehicle userAndVehicle = userMapper.getCarInfo(id);
        return userAndVehicle;
    }
}
